<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">所有名单</li>
  </ol>
  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <input type="text" class="form-control" placeholder="请输入关键字：手机号/公司/微信号/来源" ng-model="searchMap.searchData" style="width:400px;">
    </div> 
    <div class="form-group">
      <select class="form-control" placeholder="是否注册" ng-model="searchMap.registrationStatus">
        <option value="">--是否注册--</option>
        <option value="0">否</option>
        <option value="1">是</option>
      </select>
    </div>
    <button type="submit" class="btn btn-primary">查询</button>
  	<a class="btn btn-success" ng-href="#/fa/downline/view">新增</a>
  	<div class="btn btn-success add-pic-btn">批量导入</div>
  	<a href="https://www.superfa.cn/upload/bann/20160608/1465356901725ccc.xls" class="btn btn-success">批量导入模版下载</a>
    <a class="btn btn-success" ng-click="delAll();">批量刪除</a>
  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th><input type="checkbox" name="chkdownlineAll" id="chkdownlineAll" ng-click="chkdownlineAll();" /></th>
        <th width="60">ID</th>
        <th width="130">添加时间</th>
        <th width="130">手机号</th>
        <th width="130">客户名称</th>
        <th width="200">公司</th>
        <th width="200">职位</th>
        <th width="200">邮箱</th>
        <th width="200">微信号</th>
        <!-- <th width="200">用户类别</th> -->
        <th width="200">状态</th>
        <th width="200">来源</th>
        <th width="150">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="c in list">
       <td>
          <input type="checkbox" name="chkdownline" value="{{c.id}}" />
        </td>
        <td>{{c.id}}</td>
       <td>{{c.createDate | date: 'yyyy-MM-dd HH:mm:ss'}}</td>
       <td>{{c.mobile}}</td>
       <td>{{c.name}}</td>
       <td>{{c.companyName}}</td>
       <td>{{c.job}}</td>
       <td>{{c.email}}</td>
       <td>{{c.weChat}}</td>
       <td>{{c.registrationStatus}}</td>
       <td>{{c.mediaSource}}</td>
       <td>
         <a class="btn btn-default" ng-href="#/fa/downline/view?edit=true&id={{c.id}}">编辑</a>
         <a class="btn btn-default" ng-href="#/fa/downline/view?id={{c.id}}">查看</a>
         <a class="btn btn-default" ng-click="del(c.id)">删除</a>
       </td>
      </tr>
    </tbody>
  </table>

  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>
<div load-script src="'/static/jquery.jUploader-1.01.js?5'" call-back="" charset="utf-8" ></div>
<div class="layer-box" ng-show="isShowSaveUpload">
  <div class="layer-bg"></div>
  <p ng-show="isShowSaveUpload && uplpader" style="position: fixed;top: 108px;left: 394px;font-size: 40px;color: #eee;z-index: 100;">正在上传,请稍候...</p>
  <div ng-show="isShowSaveUpload && infoContent" class="layer-con" style="padding:10px 20px;width:700px;margin-left: -350px; height:309px; overflow:auto">
    <h4>请确认提交信息</h4>
    <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th width="130">手机号</th>
          <th width="130">客户名称</th>
          <th width="200">公司</th>
          <th width="200">职位</th>
          <th width="200">邮箱</th>
          <th width="200">微信号</th>
          <th width="200">来源</th>
        </tr>
      </thead>
      <tbody style="height: 100px;overflow:auto">
        <tr ng-repeat="m in uploadList">
         <td>{{m.mobile}}</td>
         <td>{{m.name}}</td>
         <td>{{m.companyName}}</td>
         <td>{{m.job}}</td>
         <td>{{m.email}}</td>
         <td>{{m.weChat}}</td>
         <td>{{m.mediaSource}}</td>
        </tr>
      </tbody>
    </table>
    <div class="con-wrap">
        <div class="form-group" >
          <button class="btn btn-primary" ng-click="startUpload()" ng-disabled="isStartUpload">确认导入</button>
          <button class="btn btn-primary" ng-click="isShowSaveUpload = false">取消导入</button>
        </div>
    </div>
  </div>
</div> 